<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css的引入方式 | 个人笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/1.1css的样式.html" />
    
    
    <link rel="prev" href="../../index.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1"
        data-chapter-title="css的引入方式"
        data-filepath="md/css/1.CSS的引入方式.md"
        data-basepath="../.."
        data-revision="Thu Jun 07 2018 18:22:44 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1" data-path="md/css/1.CSS的引入方式.html">
            
                
                    <a href="../../md/css/1.CSS的引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        css的引入方式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/css/1.1css的样式.html">
            
                
                    <a href="../../md/css/1.1css的样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        css的样式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/gitbook的安装.html">
            
                
                    <a href="../../md/gitbook的安装.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        gitbook的安装
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >个人笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;">CSS&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;</h1>
<p>css&#x6709;&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#xFF1A;</p>
<ol>
<li>&#x884C;&#x5185;&#x5F15;&#x5165;<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">style</span>=<span class="hljs-value">&quot;&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
</code></pre>
</li>
<li>&#x9875;&#x5185;&#x5F15;&#x5165;<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
 <span class="hljs-tag">p</span><span class="hljs-rules">{
     <span class="hljs-rule"><span class="hljs-attribute">text-decoration</span>:<span class="hljs-value"> underline</span></span>;
 }</span>
</span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
</code></pre>
</li>
<li>&#x5916;&#x90E8;&#x5F15;&#x5165;<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">&quot;stylesheet&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;css/index.css&quot;</span>/&gt;</span>
</code></pre>
</li>
</ol>
<p>css&#x7684;&#x9009;&#x62E9;&#x7B26;/&#x5668;&#xFF1A;</p>
<ol>
<li><p>&#x5143;&#x7D20;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x76F4;&#x63A5;&#x628A;&#x5143;&#x7D20;&#x540D;&#x5F53;&#x6210;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;div</p>
</li>
<li><p>&#x901A;&#x914D;&#x7B26;&#xFF0C;&#x7528;*&#x8868;&#x793A;&#xFF0C;&#x53EF;&#x4EE5;&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x7684;&#x5143;&#x7D20;&#x3002;</p>
</li>
<li><p>&#x7C7B;&#x540D;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x7528;class&#x6765;&#x5B9A;&#x4E49;&#xFF0C;&#x5728;css&#x4E2D;&#x7528;.class&#x6765;&#x63A7;&#x5236;&#x7C7B;&#xFF0C;&#x540C;&#x4E00;&#x7C7B;&#x540D;&#x53EF;&#x4EE5;&#x91CD;&#x590D;&#x4F7F;&#x7528;</p>
</li>
<li><p>ID&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x7528;ID&#x6765;&#x5B9A;&#x4E49;&#xFF0C;&#x5728;css&#x4E2D;&#x7528;#id&#x6765;&#x63A7;&#x5236;id&#xFF0C;id&#x540D;&#x662F;&#x552F;&#x4E00;&#x7684;</p>
</li>
<li><p>&#x5305;&#x542B;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x7528;&#x7A7A;&#x683C;&#x8868;&#x793A;&#xFF0C;&#x8BED;&#x6CD5;(element elChild)&#xFF0C;&#x53EF;&#x4EE5;&#x9009;&#x62E9;&#x5230;element&#x5143;&#x7D20;&#x7684;&#x6240;&#x6709;&#x540D;&#x5B57;&#x53EB;elChild&#x7684;&#x540E;&#x4EE3;&#x5143;&#x7D20;&#x3002;&#x5982;:div a &#x7684;&#x610F;&#x601D;&#x5C31;&#x662F;div&#x91CC;&#x9762;&#x7684;a</p>
</li>
</ol>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../index.html" class="navigation navigation-prev " aria-label="Previous page: Introduction"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/1.1css的样式.html" class="navigation navigation-next " aria-label="Next page: css的样式"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
